
{% extends "baseUser.html" %}

{% block userData %}
	<div class="page-header">
		<div class="row">
			<div class="col-md-10">
				<h1>Agregar Competencia</h1>
			</div>
		</div>
	</div>

	<div class="container">
		<div class="row">
			{% with messages = get_flashed_messages() %}
			  {% if messages %}
			    <div class="alert alert-info">
			    {% for message in messages %}
			      {{ message }}
			    {% endfor %}
			    </div>
			  {% endif %}
			{% endwith %}
		
			<div class="col-md-12">
				
				{% call macros.render_form(form, action_url=url_for('agregarCompetencia'), action_text='Agregar') %}
					{{ macros.render_field(form.nombre, label_visible=true, placeholder='Titulo', type='text') }}
					{{ macros.render_field(form.introduccion, label_visible=true, placeholder='Introduccion', type='text') }}
	                {{ macros.render_field(form.fecha, label_visible=true, placeholder='Fecha', type='date') }}
	                {{ macros.render_field(form.deportes, label_visible=true, placeholder='Deporte', type='text') }}
            	{% endcall %}
				
				
			</div>
		</div>
	</div>
{% endblock %}